/**
 * 
 */
package org.jim.server.processor;

import org.jim.core.ImChannelContext;
import org.jim.core.packets.HttpReqBody;
import org.jim.core.packets.HttpRespBody;

/**
 *
 * @author WChao
 */
public interface HttpCmdProcessor extends SingleProtocolCmdProcessor {

    /**
     * 查询用户
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody getUserInfo(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 查询客服会话列表
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody getConversationsList(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 撤回消息
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody cancelChatLog(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 清除未读数
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody clearUnreadCount(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 消息置顶
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody updateIsPinned(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 清除消息记录
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody clearChatLog(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 清除会话
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody clearConversations(HttpReqBody httpReqBody, ImChannelContext imChannelContext);
    /**
     * 查询消息记录
     * @param httpReqBody
     * @param imChannelContext
     * @return
     */
    HttpRespBody getChatLogsList(HttpReqBody httpReqBody, ImChannelContext imChannelContext);

}
